package com.hx.voice.recognition.gateway;

import com.hx.voice.recognition.auth.client.EnableCrmAuthClient;
import com.hx.voice.recognition.gateway.utils.DBLog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @descripe：启动路由
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/10 9:33
 * @version：V1.0
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@EnableFeignClients({"com.hx.voice.recognition.auth.client.feign","com.hx.voice.recognition.gateway.feign"})
@EnableCrmAuthClient
public class GatewayServerApp {

    public static void main(String[] args) {
        DBLog.getInstance().start();
        SpringApplication.run(GatewayServerApp.class,args);
    }
}